#define _CRT_SECURE_NO_WARNINGS 1

#include "sequential_stack.h"

int main() {
	SqStack S;
	InitStack(&S);
	//int a = StackEmpty(S);
	//int a = StackLength(S);
	Push(&S, 1);
	Push(&S, 2);
	Push(&S, 3);
	Push(&S, 4);
	Push(&S, 5);
	//ClearStack(&S);
	//DestroyStack(&S);
	int e = 0;
	GetTop(&S, &e);
	printf("%d\n", e);

	for (int i = 0; i < StackLength(S); i++) {
		printf("%d", *(S.base + i));
	}

	//printf("%d\n", a);
	return 0;
}